Repository navigation
feat(macos): 默认终端选择与安全启动,准备发布 0.5.4 - #14
Merged
Merged
Conversation
启动 Agent 不再固定 macOS Terminal:新增默认终端偏好(存 bundle id, 默认 com.apple.Terminal,随 YConnectPreferences 持久化),启动时按偏好 分发:iTerm2 用 AppleScript 开新窗口写入命令;Ghostty / WezTerm / Alacritty 用 open -na 传参;kitty 用应用内置二进制并指定会话目录。 所有终端执行同一 .command 会话文件,env/secret/ready/exit 语义与 120s 过期、0700 权限等安全模型完全不变。偏好指向未安装或未知终端时 回落 macOS Terminal 并在返回消息注明。控制面板启动区新增默认终端 Picker(未检测到的终端置灰标注),caption 动态显示所选终端名。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
macOS 用户可在“客户端适配 → 启动 Agent”的两个启动按钮下方选择“默认终端”,选择会保存,未安装项置灰,所选终端被移除时回退到 Terminal 并提示。准备发布 0.5.4。正式保障 Terminal、iTerm2 和 Ghostty;kitty、WezTerm、Alacritty 保留为可选兼容入口。
Terminal/iTerm2 使用 NSWorkspace 打开会话文件,其他终端使用明确的 argv 和系统 zsh。iTerm2 保留原生运行确认,超时后安全取消;迟到回调不能重复完成。未消费的会话通过原子领取取消并清理密钥,已运行的会话保持独立。WezTerm 使用独立进程启动会话。保留 0.5.3 的 Tahoe、托盘及窗口重新打开修复。
CI 实测 Terminal、iTerm2、Ghostty 和缺失终端回退。macOS 14 保留完整测试;Tahoe 两种架构直接检查同一 Universal 包的启动及窗口重开,省去重复编译。标签 Release 在所有测试、代码签名、公证及更新验签通过后发布;不重复执行整轮分支签名预演。Windows 侧栏回归测试在读取边界前同步布局,避免采样未测量控件。
验证:本机 Swift 221 项零失败(3 项可选集成测试跳过),发布脚本 8 项、严格 Release 构建、真实终端的 TTY/特殊路径/模型/凭据清理、PTY 输入、Sparkle 篡改拒绝及安装重启均通过。已有 CI 的 Windows 59 项、安装/卸载/升级通过;最终 PR 和标签检查以当前提交为准。已展示原生浅色、深色及窄窗口截图。